package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.lang.reflect.Type;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Products<Productstype> {
    @TableId(type = IdType.AUTO)
    private Integer pid;
    private String pname;
    private String detail;
    private String mainimage;
    private BigDecimal price;
    private String uom;
    private Integer sku;
    private Integer status;
    private Integer type;
    @TableField(exist = false)
    private Productstype productstype;
}
